import request from '@/utils/request'

// 会员新增业务
export const addBusinessForMemberService = (businessAddDTO) => {
  return request.post('/member/business/add', businessAddDTO)
}

// 会员自身业务数量查询
export const countBusinessForMemberService = (businessStatus) => {
  return request.get(`/member/business/count/${businessStatus}`)
}

// 会员自身业务查询
export const listBusinessForMemberService = (businessStatus) => {
  return request.get(`/member/business/list/${businessStatus}`)
}

// 会员业务退款
export const refundBusinessCarService = (id) => {
  return request.put(`/member/business/refund/${id}`)
}
